1- Launch your Visual Studio 2022 in Safe Mode (devenv.exe /SafeMode in Command Prompt).
2- Rename the folder VisualStudio to VisualStudio.Old in following path: C:\Users\<username>\AppData\Local\Microsoft\VSCommon\OnlineLicensing\VisualStudio.
3- Restart your Visual Studio.
Visual Studio 2022 automatically closing when i try to open it
Seyed Hamed Vahedi
Thu, 14 March, 2024